# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=squeak-vm
pkgver=4.10.2.2614
pkgrel=1
pkgdesc="Full-featured implementation of the Smalltalk programming language and environment"
url="http://squeakvm.org"
arch="x86_64 s390x armv7" #disabled for the other architectures due to compiling problems
license="MIT"
depends="mesa-gl libxrender"
makedepends="make cmake"
options="!check" #make check not implemented
subpackages="$pkgname-doc"
source="http://squeakvm.org/unix/release/Squeak-$pkgver-src.tar.gz
	sqVirtualMachine.patch"
builddir="$srcdir/Squeak-$pkgver-src/"

build() {
	./unix/cmake/configure \
		--prefix=/usr \
		--without-quartz \
		--with-x \
		--enable-mpg-mmx
	 make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b823fb97f7826dbbae5feeb15ffc3ab7e11cf27c5a3cc3f2cf2f8c39b56af5f9d0078d020a4b8f72b997198d296be6d85ec10e0bca10d5214bf586e1e0587f07  Squeak-4.10.2.2614-src.tar.gz
e63b3151f7f6febf472a70838995ae4ebdb8ddf728fb9de0a78c4bf29f8ab9b5481422bf88718fdf22d75b67e41795aff9dc2827037357084fd9a94738821054  sqVirtualMachine.patch"
